package gof.com.yew.state;

//环境类
public class Context {
	
	private State state ;

	public State getS() {
		return state;
	}

	public void setS(State s) {
		System.out.println("状态切换");
		this.state= s;
		state.handler();
		System.out.println("------------------------------------");
	}

}
